package cn.tedu.kcircle.check.admin.infra.converter;

import cn.tedu.kcircle.check.admin.protocol.param.CheckLogAddParam;
import cn.tedu.kcircle.check.admin.repository.model.CheckLogAddModel;
import cn.tedu.kcircle.check.dao.entity.CheckLogDO;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

@Component
public class CheckLogConverter {
    public CheckLogDO model2DO(CheckLogAddModel checkLogAddModel){
        CheckLogDO checkLogDO = new CheckLogDO();
        BeanUtils.copyProperties(checkLogAddModel,checkLogDO);
        return checkLogDO;
    }
}
